<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Agregar Cliente Proveedor</title>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">

    <style>
        body {
            width: 600px;
            margin: 50px auto;
        }
        .badge {
            float: right;
        }
    </style>
</head>
<body>
    <h1>Agregar Cliente Proveedor</h1>
    <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" >sysganado</a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="{{route('clienteproveedor.index')}}">Todos</a></li>
                     <li><a href="{{route('clienteproveedor.create')}}">Nuevo</a></li>
                  
                </ul>
            </div>
        </div>
    </nav>

    <div class="panel panel-success">
        <div class="panel-heading">
            <h4>Nuevo Cliente proveedor</h4>
        </div>

        <div class="panel-body">


        {{ Form::open(array('url' => 'clienteproveedor')) }}

               
                    <input type="text" name="cliente" placeholder="Cliente" class="form-control" required>
                </p>
                <p><input type="text" name="nombre" placeholder="Nombre" class="form-control" required>
                </p>
                <p><input type="text" name="ruc" placeholder="Ruc" class="form-control" required></p>
                <p>
                    <input type="text" name="direccion" placeholder="Direccion" class="form-control" required>
                </p>
                <p>
                    <input type="text" name="telefono" placeholder="Telefono" class="form-control" required>
                </p>
                <p>
                    <input type="text" name="celular" placeholder="Celular" class="form-control" required>
                </p>
                <p>
                    <input type="text" name="email" placeholder="Email" class="form-control" required>
                </p>
               


                 <p><label for="activo">Estado:</label><select name="activo" id="activo" class="form-control">
                    <option value="0">Inactivo</option>
                    <option value="1">Activo</option>
                    </select>
                </p>
                 <p>
                    <div class="checkbox"><label><input name="proveedor" type="checkbox" value="1" checked>Proveedor</label></div>
                    </p>
                <p>
                    <input type="submit" value="Guardar" class="btn btn-success">
                </p>
            {{ Form::close() }}
        </div>
    </div>

  
        @if(Session::has('message'))
                <div class="alert alert-{{ Session::get('class') }}">{{ Session::get('message')}}</div>
        @endif
</body>
</html>